﻿using System;
using System.ComponentModel.DataAnnotations;

namespace CTM.Web.Models.Input
{
    public class ConversationComment
    {
        #region Properties

        [Key]
        public Guid Id { get; set; }

        [Required]
        public string Content { get; set; }

        public bool IsDeleted { get; set; }

        public DateTime CreatedOn { get; set; }

        public Guid CreatedBy { get; set; }

        public DateTime ModifiedOn { get; set; }

        public Guid ModifiedBy { get; set; }

        #endregion

        #region Relationship
        public virtual Conversation Conversation { get; set; }
        #endregion

        public ConversationComment()
        {
            IsDeleted = false;
            CreatedOn = DateTime.UtcNow;
            ModifiedOn = DateTime.UtcNow;
        }
    }
}